<fieldset>
	<legend>Revistas Dispon&iacute;veis</legend>
<table>
  <tr>
    <td width="200" style="font-weight:bold;">Nome</td>
	<td width="100" style="font-weight:bold;">Editora</td>
    <td width="150" style="font-weight:bold;">Categoria</td>
	<td />
  </tr>
  
<% for magazine in @magazines %>
  <tr>
    <td><%= h magazine.name %></td>
    <td><%= h magazine.publisher %></td>
  	<td><%= h magazine.category.name %></td>
    <td><%= link_to 'Mostrar', :action => 'show', :id => magazine %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Anterior', { :page => @magazine_pages.current.previous } if @magazine_pages.current.previous %>
<%= link_to 'Pr&oacute;xima', { :page => @magazine_pages.current.next } if @magazine_pages.current.next %> 
</fieldset>
